package com.sg.dto.integration.app;

import com.sg.common.dto.BaseDto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Objects;

/**
 * @desc PicSingleSetDataEntryDto
 * @使用场景
 */
@Data
public class PicSingleSetDataEntryDto extends BaseDto implements Serializable {

    /**
     * 周期阶段资料记录ID
     */
    @ApiModelProperty("周期阶段资料记录ID")
    private String cycleStageDataId;

    /**
     * 资料图片概要地址
     */
    @ApiModelProperty("资料图片概要地址")
    private String summaryDataPic;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        PicSingleSetDataEntryDto that = (PicSingleSetDataEntryDto) o;
        return (
                cycleStageDataId == that.cycleStageDataId &&
                        summaryDataPic == that.summaryDataPic
        );
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), cycleStageDataId, summaryDataPic);
    }

}
